package com.qijian.system.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * 安全培训记录详情对象 eval_safety_train_users
 *
 * @author qijian
 * @date 2022-07-19
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("eval_safety_train_users")
public class EvalSafetyTrainUsers extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long id;

    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long mainId;

    @Excel(name = "用户id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "用户id")
    private Long userId;

    @Excel(name = "培训人员")
    @ApiModelProperty(value = "用户名称")
    private String nickName;


    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "部门id")
    private Long deptId;

    @Excel(name = "部门名称")
    @ApiModelProperty(value = "部门名称")
    private String deptName;

    @Excel(name = "得分")
    @ApiModelProperty(value = "得分")
    private BigDecimal score;

}
